import {
	request,
	requestData
} from "../Promise.js"
export default {
	// 用户资格证查询
	staffIsApply(data) {
		return request({
			url: 'data-multiterminal/safetycode/isApply',
			method: 'post',
			data,
		})
	},
	// 评估列表
	staffList(data) {
		return request({
			url: 'data-multiterminal/safetycode/apply',
			method: 'post',
			data,
		})
	},
	// 当前周期
	currentList(data) {
		return request({
			url: 'data-multiterminal/safetycode/staff/current/list',
			method: 'post',
			data,
		})
	},
	// 历史周期
	historyList(data) {
		return request({
			url: 'data-multiterminal/safetycode/staff/history/list',
			method: 'post',
			data,
		})
	},
	// 进行中运单
	staffWaybillList(data) {
		return request({
			url: 'data-multiterminal/safetycode/list',
			method: 'post',
			data,
		})
	},
	// 安全积分详情
	staffScoreDetail(data) {
		return request({
			url: 'data-multiterminal/safetycode/detail/evalScore',
			// url: 'http://192.168.1.40:8204/client/assEvalArchive/staff/archiveItem',
			method: 'post',
			data,
		})
	},
	// 安全积分规则
	staffScoreRule(data) {
		return request({
			url: 'data-multiterminal/safetycode/list/evalScoreRule',
			method: 'post',
			data,
		})
	},
	// 安全码申诉
	staffAppealAudit(data) {
		return request({
			url: 'data-multiterminal/safetycode/appealAudit',
			method: 'post',
			data,
		})
	},
	// 安全码申诉历史
	staffHisAppealAudit(data) {
		return request({
			url: 'data-multiterminal/safetycode/list/hisAppealAudit',
			method: 'post',
			data,
		})
	},
	// 安全码等级配置
	staffLevel(type = 2) {
		return request({
			url: 'data-assessment/hg-app/assEvalLevel/queryEvalScoreList/' + type,
			method: 'post'
		})
	}
}
